package com.rules.admin.expression.operators;



import com.rules.admin.expression.Expression;
import com.rules.admin.expression.ExpressionVisitor;

import java.io.Serializable;

public class Parenthesis implements Expression, Serializable {
   private Expression expression;

   public void accept(ExpressionVisitor visitor) {
      visitor.vistor(this);
   }

   public String toString() {
      return "(" + this.expression + ")";
   }

   public Parenthesis(Expression expression) {
      this.expression = expression;
   }
}
